﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharpSphinx.Util
{
    public class Utilities
    {

        private const bool TRACKING_OBJECTS = false;



        private Utilities()
        {

        }



        public static String Pad(int padding){
            if (padding > 0)
            {
                StringBuilder sb = new StringBuilder(padding);
                for (int i = 0; i < padding; i++)
                {
                    sb.Append(" ");
                }
                return sb.ToString();


            }
            else
            {
                return "";
            }
        }

     public static String Pad(String str, int minLength)
    {
        String result = str;
        int pad = minLength - str.Length;
        if (pad > 0)
        {
            result = str + pad * (minLength - str.Length);

        }
        else if (pad < 0)
        {
            result = str.Substring(0, minLength); 
        }

        return result;
    }


     public static String Pad(int val, int minLength)
     {
         return Pad()
     }


    }
}
